package com.shop.mms_client.api;

import com.shop.mms_client.model.DetectionResult;
import com.shop.mms_client.model.MessageRequest;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface ApiService {
    @POST("/analyze_text")
    Call<DetectionResult> detectText(@Body MessageRequest request);
    
    @Multipart
    @POST("/analyze_image")
    Call<DetectionResult> detectMms(
        @Part("text") RequestBody text,
        @Part("sender") RequestBody sender,
        @Part MultipartBody.Part image
    );
} 